forward(A)
forward(B)
repeat
  write("A:" .. rotationCounts(A), 1)
  write("B:" .. rotationCounts(B), 2)
until isPressed(ESCAPE)
stop(A)
stop(B)

